import { createBrowserRouter } from "react-router-dom";
import AppEx from "../components/AppEx";
import FirstView from "../components/FristView";
import SecondView from "../components/SecondView";
import PractiseFirst from '../views/PractiseFirst'
import PractiseSecond from "../views/PractiseSecond";
const routes = [
  {
    path: "/",
    element: <h2>Nice to see you !</h2>,
  },
  {
    path: "/a",
    element: <div>Hello world!</div>,
  },
  {
    path: "/b",
    element: <div>Hello gold!</div>,
  },
  {
    path: "/appEx",
    element: <AppEx />,
  },
  {
    path: "/first",
    element: <FirstView />,
  },
  {
    path: "/second",
    element: <SecondView />,
  },
  {
    path: "/practiseFirst",
    element: <PractiseFirst />,
  },
  {
    path: "/practiseSecond",
    element: <PractiseSecond/>
  },
];
const router = createBrowserRouter(routes, {});
export default router;
